<?php

class Client_ES1 extends Client_Client {
    public function __construct() {
        parent::__construct(CLIENT_CLASS_ES1);
    }

    public function sendMeterReading($obj) {
        return $this->callMethod('SendMeteringReadings', $obj, 'isValidMeterReadingResult');
    }

    protected function isValidMeterReadingResult() {
        return !$this->result->return;
    }

    public function sendSupplyTermination($obj) {
        return $this->callMethod('SendSupplyTerminationMessage', $obj, 'isValidSupplyTerminationResult');
    }

    protected function isValidSupplyTerminationResult() {
        return !$this->result->return;
    }

    public function sendSupplierChangeReplay($obj) {
        return $this->callMethod('SupplierChangeReply', $obj, 'isValidSupplierChangeReplayResult');
    }

    protected function isValidSupplierChangeReplayResult() {
        return !$this->result->return;
    }
}
